package com.xunker.appointment.repository;

import com.xunker.appointment.model.hospital.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {
    //MongoRepository持久层规范与JPA一样
    Hospital getHospitalByHospitalCode(String hospitalCode);

    String getHospitalNameByHospitalCode(String hospitalCode);
}
